package chp5



import grails.test.mixin.*
import org.junit.*

/**
 * See the API for {@link grails.test.mixin.domain.DomainClassUnitTestMixin} for usage instructions
 */
@TestFor(Person)
class PersonTests {

	void testSave() {
		def p = new Person(name:"hello")
		p.save()
	}

    void testGet() {
    	def p = Person.get(1)
    	println "name: ${p?.name}"
    	assert 1 == p?.id
    }
}
